package com.linln.modules.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linln.common.exception.order.OrderException;
import com.linln.common.vo.JsonResult;
import com.linln.modules.order.domain.YearauditOrder;
import com.linln.modules.system.domain.User;

public interface YearauditOrderService extends IService<YearauditOrder> {

    /**
     * 购买服务（未支付购买和待支付状态付款都走这个接口）
     * @param yearauditOrder
     * @return
     * @throws OrderException
     */
    JsonResult buyService(YearauditOrder yearauditOrder,String isBuy) throws OrderException;

    void findUserByRoleId(IPage iPage, User user);

    /**
     * 指派取车人
     * @param userId
     * @param orderId
     * @throws OrderException
     */
    void saveOrderTakecaruser(String userId, String orderId) throws OrderException;

    /**
     * 查询取车人订单列表
     * @param iPage
     * @param yearauditOrder
     * @param takecaruserId
     */
    void findPickUTheCar(IPage iPage, YearauditOrder yearauditOrder, String takecaruserId);
}
